#coding=utf-8

from MZCCFileChecker import *

'''
' 文件列表检查
' 输入：
'  checkList : 待查文件列表
'  problemThre : 输出问题数量阈值
' 输出：
'   问题列表
'''
def mzccListCheck(checkList, problemThre, mzccSingleLineRules, mzccMulLineRules):

    problemDic = {};
    problemNum = 0;
    whiteList = [];

    for tmpFilePath in checkList:
        tmpProblemList = mzccFileCheck(tmpFilePath, mzccSingleLineRules, mzccMulLineRules);
        if len(tmpProblemList) == 0:
            whiteList.append(tmpFilePath);

        problemDic[tmpFilePath] = tmpProblemList;

        problemNum = problemNum + len(tmpProblemList);
        print "当前发现问题：" + str(problemNum);
        if problemNum > problemThre:
            break;

    return problemDic;